package artid.com.arttogoa.parser;

import java.io.Serializable;
import org.json.JSONObject;
/**
 * 
*    
* 项目名称：ArtworkArtA   
* 类名称   ：ClassesPrser   
* 类描述   ：艺术家类别实体类+解析   
* 创建人   ：耿卫斌   
* 创建时间：2016-9-23 下午2:40:22   
*
 */
public class ClassesPrser extends AppItem implements Serializable {
	private static final long serialVersionUID = 1L;
	private String aid;
	private String aname;
	@Override
	public void parse(JSONObject obj) {
		// TODO Auto-generated method stub
		if (null == obj) {
			return;
		}
		aid = obj.optString("aid");
		aname = obj.optString("aname");
	}
	public String getAid() {
		return aid;
	}
	public void setAid(String aid) {
		this.aid = aid;
	}
	public String getAname() {
		return aname;
	}
	public void setAname(String aname) {
		this.aname = aname;
	}
	public ClassesPrser() {
		super();
	}
	public ClassesPrser(String aid, String aname) {
		super();
		this.aid = aid;
		this.aname = aname;
	}
	@Override
	public String toString() {
		return "ClassesPrser [aid=" + aid + ", aname=" + aname + "]";
	}
}
